package com.ld.bisystem;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ld.bisystem.wrapper.anno.JoinField;
import com.ld.bisystem.wrapper.anno.JoinOrder;
import com.ld.bisystem.wrapper.anno.JoinTable;
import com.ld.bisystem.wrapper.condition.DateTypeConstant;
import com.ld.bisystem.wrapper.condition.NumberTypeConstant;
import com.ld.bisystem.wrapper.condition.SqlCondition;


@JoinTable(left = "  sys_dep dep ",right = "sys_user user ",on = "dep.id = user.dep_id ")
public class User {

    @TableField
    @JoinField(columnName = "dep.crt_time",dateFunc = DateTypeConstant.day,group = true,value = SqlCondition.ge)
    private String crtTime;

    @JoinField(columnName = "user.id",numberFunc = NumberTypeConstant.count,value = SqlCondition.ge)
    @JoinOrder
    private Integer total;


    public String getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(String crtTime) {
        this.crtTime = crtTime;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}